<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

namespace Admin\Controller;
use Think\Controller;
class BusinessController extends IndexController {
	
	public function indexAction(){
		
		require_once(C('S_APPS')."/Hook/SendSMS/FoxSendSMS.php");
		
		$sms = new \MobileSMS($sendsms);	

		$smsarry=$sms->CheckSum();

		$overagesum=intval($smsarry['overage']);

		$this->assign('smssum',$overagesum);

		$this->display();
	}
	
	public function postAction(){
		if(IS_POST){
			$this->SetConfig($_POST);
		}
		
		$this->error('提交成功！','/admin/'.CONTROLLER_NAME.'/index');
	}
	
}